package com.opc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.opc.entity.DeviceRecordLatest;
import com.opc.mapper.DeviceRecordLatestMapper;
import com.opc.service.DeviceRecordLatestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 作者
 * @since 2023-03-14
 */
@Service
public class DeviceRecordLatestServiceImpl extends ServiceImpl<DeviceRecordLatestMapper, DeviceRecordLatest> implements DeviceRecordLatestService {

    @Resource
    private DeviceRecordLatestMapper deviceRecordLatestMapper;

    @Override
    public List<DeviceRecordLatest> selectAllLatestRecordByIds(List<String> dList) {
        return deviceRecordLatestMapper.selectAllLatestRecordByIds(dList);
    }

    @Override
    public List<DeviceRecordLatest> selectAllRecords() {
        return deviceRecordLatestMapper.selectAllRecords();
    }
}
